package cc.rengu.oltp.service.common.enums;

import java.io.Serializable;

/**
 * 监控模型类型
 * Created by wangcheng on 2021/10/19 9:07
 */
public enum MonitorModelTypeEnum implements Serializable {
    TOTAL_SUCC("00", "交易成功率"),
    TOTAL_FAIL("01", "交易失败率"),
    TOTAL_TIMEOUT("02", "交易超时率"),
    TOTAL_AVG_TXN_COST("03", "平均交易耗时"),
    SRC_CHANNEL_SUCC("10", "渠道交易成功率"),
    SRC_CHANNEL_FAIL("11", "渠道交易失败率"),
    SRC_CHANNEL_TIMEOUT("12", "渠道交易超时率"),
    SRC_CHANNEL_AVG_TXN_COST("13", "渠道平均交易耗时"),
    DST_CHANNEL_SUCC("20", "通道交易成功率"),
    DST_CHANNEL_FAIL("21", "通道交易失败率"),
    DST_CHANNEL_TIMEOUT("22", "通道交易超时率"),
    DST_CHANNEL_AVG_TXN_COST("23", "通道平均交易耗时"),
    PROD_SUCC("30", "支付产品交易成功率"),
    PROD_FAIL("31", "支付产品交易失败率"),
    PROD_TIMEOUT("32", "支付产品交易超时率"),
    PROD_AVG_TXN_COST("33", "支付产品平均交易耗时"),
    TRANS_STATIS("99", "交易统计信息"),
    ;
    private String modelType;   /* 监控模型类型 */
    private String modelDesc;   /* 监控模型描述 */

    MonitorModelTypeEnum(String modelType, String modelDesc) {
        this.modelType = modelType;
        this.modelDesc = modelDesc;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getModelDesc() {
        return modelDesc;
    }

    public void setModelDesc(String modelDesc) {
        this.modelDesc = modelDesc;
    }
}
